﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YXShop.IDAL;
using YXShop.IDAL.Stocks;

namespace YXShop.DALFactory
{
    public sealed partial class DataAccess
    {
        /// <summary>
        /// 商品条码信息
        /// </summary>
        /// <returns></returns>
        public static IBarCode CreateBarCode()
        {
            return (IBarCode)CreateObject("Stocks.BarCode");
        }
        /// <summary>
        /// 商品跟踪信息
        /// </summary>
        /// <returns></returns>
        public static IProductTruck CreateProductTruck()
        {
            return (IProductTruck)CreateObject("Stocks.ProductTruck");
        }
        /// <summary>
        /// 待入库商品信息
        /// </summary>
        /// <returns></returns>
        public static IOutProduct CreateOutProduct()
        {
            return (IOutProduct)CreateObject("Stocks.OutProduct");
        }
        /// <summary>
        /// 订单信息
        /// </summary>
        /// <returns></returns>
        public static IOrder CreateOrder()
        {
            return (IOrder)CreateObject("Stocks.Order");
        }
        /// <summary>
        /// 订单详细信息
        /// </summary>
        /// <returns></returns>
        public static IOrderInfo CreateOrderInfo()
        {
            return (IOrderInfo)CreateObject("Stocks.OrderInfo");
        }
    }
}
